package com.qqtech.qquan.homemaking.dao;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.qqtech.core.frame.dao.BaseDao;
import com.qqtech.qquan.homemaking.model.HomemakingOrder;
import com.qqtech.qquan.homemaking.model.HomemakingOrderQuery;
import com.qqtech.qquan.homemaking.model.HomemakingOrderVo;

public interface HomemakingOrderDao extends BaseDao<HomemakingOrder> {
	public HomemakingOrderVo getByOrderNo(java.lang.String orderNo) ;
	
	/**
	 * 获取某人的家政服务次数
	 * @param query
	 * @return
	 */
	public int queryCountByDoneAt(HomemakingOrderQuery query);
	
	/**
	 * 卖家-我的预约
	 * @param query
	 * @param pageable
	 * @return
	 */
	public Page<HomemakingOrderVo> queryPageListBySeller(HomemakingOrder query, Pageable pageable); 
}
